const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  userInfo: state => state.user.userInfo,
  serverTime: state => state.commonState.serverTime,

  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  pathViews: state => state.tagsView.pathViews,
  roles: state => state.user.roles,

  permission_routes: state => state.permission.routes,
}
export default getters
